package com.cdtu;

import com.cdtu.entity.User;

import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author : Sakura
 * @Date : 2023/1/13 21:29
 */
public class temp {
    public static void main(String[] args) {
//        User user=new User();
//
//        Random random=new Random();
//        for (int i = 0; i < 20; i++) {
//            System.out.println(random.nextInt(4));
//        }
        Date date = new Date();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy");
        String format = simpleDateFormat.format(date);
        Integer year = Integer.valueOf(format);
        System.out.println(year);



    }
}
